#include "constMethod.h"

ConstMethod* ConstMethod::allocate(int byte_code_size){
    int size = byte_code_size + sizeof(ConstMethod);
    ConstMethod* const_method = (ConstMethod*)malloc(size);
    const_method->set_code_size(byte_code_size);
    return const_method;
}